package com.dongdongshop.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

public class TbUserScoreAccount implements Serializable {
    private Long id;

    private String userId;

    private Double totalIntegral;

    private Double consumptionIntegral;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMF+8")//从数据库获取日期格式
    @DateTimeFormat(pattern = "yyyy-MM-dd")//想向数据库发送日期格式的数据
    private Date creationTime;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMF+8")//从数据库获取日期格式
    @DateTimeFormat(pattern = "yyyy-MM-dd")//想向数据库发送日期格式的数据
    private Date updateTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId == null ? null : userId.trim();
    }

    public Double getTotalIntegral() {
        return totalIntegral;
    }

    public void setTotalIntegral(Double totalIntegral) {
        this.totalIntegral = totalIntegral;
    }

    public Double getConsumptionIntegral() {
        return consumptionIntegral;
    }

    public void setConsumptionIntegral(Double consumptionIntegral) {
        this.consumptionIntegral = consumptionIntegral;
    }

    public Date getCreationTime() {
        return creationTime;
    }

    public void setCreationTime(Date creationTime) {
        this.creationTime = creationTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}